<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./css/bootstrap.min.css" />
    <script src="./js/jquery-3.6.0.js"></script>
    <script src="./js/bootstrap.min.js"></script>
    <style>
      h1,
      th,
      td {
        text-align: center;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <h1>学生列表</h1>
      <!-- 查询条件 -->
      <div style="float: left">
        <form class="form-inline">
          <div class="form-group">
            <label for="sid">学号</label>
            <input
              type="text"
              class="form-control"
              id="sid"
              placeholder="请输入学号"
            />
          </div>
          <div class="form-group">
            <label for="sname">姓名</label>
            <input
              type="text"
              class="form-control"
              id="sname"
              placeholder="请输入姓名"
            />
          </div>
          <button type="button" class="btn btn-primary">查询</button>
        </form>
      </div>
      <!-- 操作按钮 -->
      <div style="float: right; margin: 5px">
        <a href="" class="btn btn-primary">添加学生</a>
        <a href="" class="btn btn-primary">删除选中</a>
      </div>
      <table class="table table-hover table-striped table-bordered">
        <thead>
          <tr class="success">
            <th><input type="checkbox" /></th>
            <th>学号</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td><input type="checkbox" /></td>
            <td>101</td>
            <td>张三</td>
            <td>18</td>
            <td>男</td>
            <td>
              <a class="btn btn-info btn-sm" href="">修改</a>
              <a class="btn btn-danger btn-sm" href="">删除</a>
            </td>
          </tr>
          <tr>
            <td><input type="checkbox" /></td>
            <td>102</td>
            <td>李四</td>
            <td>19</td>
            <td>女</td>
            <td>
              <a class="btn btn-info btn-sm" href="">修改</a>
              <a class="btn btn-danger btn-sm" href="">删除</a>
            </td>
          </tr>
          <tr>
            <td><input type="checkbox" /></td>
            <td>103</td>
            <td>王五</td>
            <td>20</td>
            <td>女</td>
            <td>
              <a class="btn btn-info btn-sm" href="">修改</a>
              <a class="btn btn-danger btn-sm" href="">删除</a>
            </td>
          </tr>
        </tbody>
      </table>
      <!-- 分页 -->
      <div style="text-align: center">
        <nav aria-label="Page navigation">
          <ul class="pagination">
            <li class="disabled">
              <a href="#" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>·
              </a>
            </li>
            <li class="active"><a href="#">1</a></li>
            <li><a href="#">2</a></li>
            <li><a href="#">3</a></li>
            <li><a href="#">4</a></li>
            <li><a href="#">5</a></li>
            <li>
              <a href="#" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
              </a>
            </li>
            <span style="font-size: 25px; margin-left: 5px">
              共23条记录,共4页
            </span>
          </ul>
        </nav>
      </div>
    </div>
  </body>
</html>
